public class Output {
    public static void main(String[] args) {
        Runnable printa = new PrintGreeting("hello!!");
        Runnable printb = new PrintStudent("jiji","124578","12");
        Runnable printc = new PrintGoodbye("再见!!");

        Thread threadA = new Thread(printa);
        Thread threadB = new Thread(printb);
        Thread threadC = new Thread(printc);

        threadA.start();
        threadB.start();
        threadC.start();
    }
}

class PrintGreeting implements Runnable {
    private String GreetingToPrint;


    public PrintGreeting(String A) {
        GreetingToPrint = A;

    }

    @Override
    public void run() {
        for (int i = 1; i <= 50; i++) {
            System.out.print(" "+GreetingToPrint);
        }

    }
}

class PrintStudent implements Runnable {
    private String PrintToName;
    private String PrintToId;
    private String PrintToAge;

    public PrintStudent(String B, String B1, String B2) {
        PrintToName = B;
        PrintToId = B1;
        PrintToAge = B2;

    }



    @Override
    public void run() {
            System.out.print("The student's name is ：" + PrintToName + "The student's student number is :" + PrintToId + "The age of the student is :" + PrintToAge);
        }

}

class PrintGoodbye implements Runnable {
    private String GoodbyeToPrint;


    public PrintGoodbye(String C) {
        GoodbyeToPrint = C;

    }

    @Override
    public void run() {
        for (int i = 1; i <= 50; i++) {
            System.out.println(" "+GoodbyeToPrint);
        }

    }
}
